package com.chinasofti.collection;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;

public class Demo04 {
    public static void main(String[] args) {
        Collection<String> c = new ArrayList<>();
        //添加元素
        c.add("张三");
        c.add("nihao ");
        c.add("java");
        for (String a:c){
            System.out.println(a);
        }
    }
}
